package conlon.constant;

import java.math.BigDecimal;

public class Constant {

    /**
     * 删除标识 (0.未删除 1.已删除)
     */
    public static final int DELETE_DISABLE = 0;
    public static final int DELETE_ENABLE = 1;

    /**
     * 全局 启用/停用状态
     */
    public static final Integer ENABLE_STATUS = 1;
    public static final Integer DISABLE_STATUS = 2;

    /**
     * 通用键
     */
    // 是否启用租户
    public static final String TENANT_ENABLE_KEY = "_tenant_enable_";
    // 是否启用mycat
    public static final String MYCAT_ENABLE_KEY = "_mycat_enable_";
    // schema
    public static final String SCHEMA_KEY = "_schema_";
    // 是否只读库标识
    public static final String SCHEMA_IS_READONLY_KEY = "_schema_is_readonly_";
    // 租户编码
    public static final String TENANT_CODE_KEY = "_tenant_code_";
    // 用户id
    public static final String USER_ID_KEY = "_user_id_";
    // 用户姓名
    public static final String USER_NAME_KEY = "_user_name_";
    // 当前登录用户id
    public static final String CURRENT_USER_ID_KEY = "_current_user_id_";
    // 当前登录用户姓名
    public static final String CURRENT_USER_NAME_KEY = "_current_user_name_";
    // 用户鉴权序列
    public static final String USER_AUTH_SEQ_ARR = "userAuthSeq";
    // 数据权限-仓库id数组
    public static final String WAREHOUSE_ID_ARR_KEY = "warehouseIdArr";

    // 请求id
    public static final String REQUEST_ID_KEY = "_request_id_";

    // 请求ip
    public static final String REQUEST_IP_KEY = "_request_ip_";

    // 请求url
    public static final String REQUEST_URL_KEY = "_request_url_";

    // 文件类型定义
    public static final String JPG = ".JPG";
    public static final String PNG = ".PNG";
    public static final String JPEG = ".JPEG";
    public static final String XLSX = ".XLSX";
    public static final String XLS = ".XLS";
    public static final String RMVB = ".RMVB";
    public static final String MP4 = ".MP4";
    public static final String AVI = ".AVI";

    /**
     * 符号-中文逗号
     */
    public static final String CN_SIGN_COMMA = "，";

    /**
     * 符号-英文逗号
     */
    public static final String EN_SIGN_COMMA = ",";

    /**
     * 符号-英文括号 左
     */
    public static final String SYMBOL_PARENTHESIS_LEFT = "( ";
    /**
     * 符号-英文括号 右
     */
    public static final String SYMBOL_PARENTHESIS_RIGHT = " )";

    /**
     * 字符串 - 初始化
     */
    public static final String STRING_INIT = "";

    /**
     * 空格
     */
    public static final String SIGN_SPACE = " ";

    /**
     * 初始化空数组
     */
    public static final String EMPTY_ARRAY_STRING = "[]";

    /**
     * 中英文逗号 正则
     */
    public static final String SIGN_COMMA = ",|，|\\s+";

    /**
     * 排序 ASC升序 DESC降序
     */
    public static final String SORT_ASC = "ASC";
    public static final String SORT_DESC = "DESC";

    public static final String WEB_SORT_ASC = "ascend";
    public static final String WEB_SORT_DESC = "descend";

    /**
     * 空字符串
     */
    public static final String EMPTY_STRING = "";

    /**
     * 空字符串
     */
    public static final String EMPTY_STRING_STR = "-";

    /**
     * 初始化数字
     */
    public static final Integer INIT_INT = 0;

    /**
     * 双冒号
     */
    public static final String doubleColon = "::";

    /**
     * 单冒号
     */
    public static final String SINGLE_COLON = ":";

    /**
     * 前端计算方式 1 ：金额 * 数量 2： 小计 ➗ 数量
     */
    public static final Integer FRONT_CALCULATE_TYPE_1 = 1;
    public static final Integer FRONT_CALCULATE_TYPE_2 = 2;

    /**
    *  数值 默认值
    **/
    public static final BigDecimal DEFAULT_NUM = new BigDecimal("-9999");
}
